package org.summer.lawyer.domain.vo.spu;

import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 *
 */
@Data
@AutoMapper(target = SpuVo.class)
public class SpuDetailVo implements Serializable {


    @Serial
    private static final long serialVersionUID = 4698034777501664645L;


    /**
     * 主键ID
     */
    @Schema(description = "服务主键ID")
    private Long spuId;

    /**
     * 商品分类ID
     */
    @Schema(description = "服务分类ID")
    private Long categoryId;

    /**
     * 商品分类名称
     */
    @Schema(description = "服务分类名称")
    private String categoryName;

    /**
     * 一级分类
     */
    @Schema(description = "一级分类分类ID")
    private Long categoryParentId;

    /**
     * 商品名称
     */
    @Schema(description = "服务名称")
    private String spuName;

    /**
     * 状态(0 下架，1上架）
     */
    @Schema(description = "状态(0 下架，1上架）")
    private String spuStatus;

    /**
     * 上传文件地址
     */
    @Schema(description = "上传文件地址")
    private String subtitle;

    /**
     * 商品介绍主图
     */
    @Schema(description = "服务封面图片")
    private String mainImgUrl;

    /**
     * 售价（单位分）
     */
    @Schema(description = "服务价格")
    private Long priceFee;

    /**
     * 市场价（单位分）
     */
    @Schema(description = "服务市场价，暂不用")
    private Long marketPriceFee;

    /**
     * 商品介绍
     */
    @Schema(description = "服务商品介绍")
    private String spuDesc;

    /**
     * 商品详情
     */
    @Schema(description = "服务详情")
    private String spuDetail;

    /**
     * 销售数量
     */
    @Schema(description = "已销售数量")
    private Integer totalSales;

    /**
     * 附件地址
     */
    @Schema(title = "url", type = "String", description = "附件地址")
    private String url;

    /**
     * 附件ID
     */
    @Schema(title = "attachmentId", type = "String", description = "附件ID")
    private String attachmentId;

}
